<div class="tab-box">
    <ul>
        <li ng-class="{active:state==1}"  ui-sref="perscenter.persinfo({state:1})" ui-sref-opts="{reload:true}">个人信息</li>
        <li ng-class="{active:state==2}" ui-sref="perscenter.persinfo({state:2})" ui-sref-opts="{reload:true}">修改密码</li>
    </ul>
</div>
<div class="pers-info">
    <ul ng-if="state==1">
        <li>所属部门职位</li>
        <li>
            <input type="text" class="form-control" disabled="disabled" ng-model="data.d_name" >
            <input type="text" class="form-control" disabled="disabled" ng-model="data.position_name" >
        </li>
        <li>用户名</li>
        <li><input type="text" class="form-control" disabled="disabled" ng-model="data.username" ></li>
        <li><span class="red-star">*</span>真实姓名</li>
        <li><input type="text" class="form-control" ng-focus="remHight()" ng-class="{'error':redErr.username}" ng-model="data.real_name"></li>
        <li><span class="red-star">*</span>手机号码</li>
        <li>
            <input type="text" class="form-control" ng-model="data.telephone" onkeyup="value=value.replace(/[^\d]/g,'')" ng-blur="checkPhone()">
            <!-- <button class="btn btn-radius add-item" ng-click="ceshiMail()">点击校验</button> -->
        </li>
        <li><button class="btn btn-primary" ng-click="ok()">确定提交</button></li>
    </ul>

    <ul ng-if="state==2">
        <li><span class="red-star">*</span>输入新密码</li>
        <li><input type="password" class="form-control" ng-focus="remHight()" ng-class="{'error':redErr.pwd}" ng-model="data.pwd" maxlength="10"><span>最小6位长度，建议数字、字母、字符组合</span></li>
        <li><span class="red-star">*</span><span>再次确认输入密码</span></li>
        <li><input type="password" class="form-control" ng-focus="remHight()" ng-class="{'error':redErr.pwd2}" ng-model="data.pwd2" ><span></span></li>
        <li><button class="btn btn-primary" ng-click="ok()">确定提交</button></li>
    </ul>
</div>
